package com.learn.boot.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

/**
 * 当应用程序上下文初始化完成时执行
 *
 * @author: MI
 * @email: 448341911@qq.com
 * @createDate: 2023/11/11 22:42
 * @updateUser: MI
 * @updateDate: 2023/11/11 22:42
 * @updateRemark: 修改内容
 * @version: v1.0
 */
@Slf4j
public class SampleListener implements ApplicationListener<ContextRefreshedEvent> {
    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {
        log.info(" 当应用程序上下文初始化完成时执行");
    }
}
